# -*- coding:gb2312 -*-
'''
Created on Dec 13, 2011

@author: aren1
'''
#add PIL to Forced Builtins
#copy the opencv 2.0 python2.6/Lib/site-package/* to python26/Lib/site-package/
import win32gui
import win32con

title = u'New Text Document.txt - Notepad'

def show():
    handle = win32gui.FindWindow(None, title)
    win32gui.ShowWindow(handle,win32con.SW_RESTORE)
    win32gui.SetForegroundWindow(handle)

def getHandle():
    return win32gui.FindWindow(None, title)